//
//  HBAudioPlayControlView.h
//  HappyBaby
//
//  Created by lanou on 15/11/28.
//  Copyright © 2015年 华哥. All rights reserved.
//

#import <UIKit/UIKit.h>
@class HBAudioPlayControlView;

typedef NS_ENUM(NSUInteger, AudioPlayIndex) {
    MiddleBtnIndex,
    LeftBtnIndex,
    RightBtnIndex,
};

@protocol HBAudioPlayDelegate <NSObject>

/** 按钮点击代理方法 */
- (void)audioPlayBtnClick:(HBAudioPlayControlView *)audioPlay buttonIndex:(AudioPlayIndex)audioPlayIndex;

@end

@interface HBAudioPlayControlView : UIView

/** 代理 */
@property (nonatomic, assign) id<HBAudioPlayDelegate> delegate;

/** 总时长 */
@property (nonatomic, assign)NSTimeInterval duration;

/** 更新进度 */
@property (nonatomic, assign)NSTimeInterval playingTime;

/** 是否正在播放 */
@property (nonatomic, assign) BOOL isPlaying;

@end
